﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manager_edit.aspx.cs" Inherits="YULI.Web.admin.manager.manager_edit" ValidateRequest="false" %>

<%@ Import Namespace="YULI.Common" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>管理员信息-<%=config.webname%></title>
    <link href="../css/shop.css" type="text/css" rel="stylesheet" />
    <link href="/css/Sellerber.css" type="text/css" rel="stylesheet" />
    <link href="../css/bkg_ui.css" type="text/css" rel="stylesheet" />
    <link href="../font/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/scripts/Validform/Validform.min.js"></script>
    <script type="text/javascript" src="/scripts/jquery/jquery.cookie.js"></script>
    <script src="../js/shopFrame.js" type="text/javascript"></script>
    <script src="/scripts/jquery/Sellerber.js" type="text/javascript"></script>
    <script src="/scripts/layer/layer.js" type="text/javascript"></script>
    <script src="../js/common/function.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            //表单验证提交
            $("#form1").Validform({
                tiptype: 2   //2：显示在控件右边  3、4：显示在控件下边
            });

            //$('#Add_Administrator').click(function () {
            //    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引

            //    parent.layer.msg('您将标记  成功传送给了父窗口');
            //    parent.layer.close(index);

            //    parent.location.reload();
            //});
        });

        function ReLoadParentPage(title) {
                var index = parent.layer.getFrameIndex(window.name); //获取窗口索引

                parent.layer.msg(title, { icon: 1 });
                parent.layer.close(index);

                parent.location.reload();
        }
    </script>
</head>
<body>
    <div id="add_administrator" class=" add_administrator">
        <div class="add_style add_administrator_style">
            <form runat="server" id="form1">
                <ul>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i>*</i>所属角色：</label>
                        <div class="formControls col-xs-6">
                            <asp:DropDownList ID="ddlRoleId" runat="server" CssClass="col-xs-8 col-sm-8 fl_hsCheckData" datatype="*" errormsg="请选择管理员角色" sucmsg=" "></asp:DropDownList>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>是否启用：</label>
                        <div class="formControls col-xs-6">
                            <%if (model.is_lock == 0)
                                {%>
                            <label>
                                <input name="rdIsLock" type="radio" class="ace" checked="checked" value="0" /><span class="lbl">启用</span></label>&nbsp;&nbsp;
                            <label>
                                <input name="rdIsLock" type="radio" class="ace" value="1" /><span class="lbl">禁用</span></label>
                            <%}
                                else
                                {%>
                            <label>
                                <input name="rdIsLock" type="radio" class="ace" value="0" /><span class="lbl">启用</span></label>&nbsp;&nbsp;
                            <label>
                                <input name="rdIsLock" type="radio" class="ace" checked="checked" value="1" /><span class="lbl">禁用</span></label>
                            <%}%>
                        </div>
                        <div class="col-4"><span class="Validform_checktip">不启用则无法使用该账户登录</span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>信息待审：</label>
                        <div class="formControls col-xs-6">
                            <%if (model.is_audit == 1)
                                {%>
                            <label>
                                <input name="rdIsAudit" type="radio" class="ace" checked="checked" value="1" /><span class="lbl">需要</span></label>&nbsp;&nbsp;
                            <label>
                                <input name="rdIsAudit" type="radio" class="ace" value="0" /><span class="lbl">不需要</span></label>
                            <%}
                            else
                            {%>
                            <label>
                                <input name="rdIsAudit" type="radio" class="ace" value="1" /><span class="lbl">需要</span></label>&nbsp;&nbsp;
                            <label>
                                <input name="rdIsAudit" type="radio" class="ace" checked="checked" value="0" /><span class="lbl">不需要</span></label>
                            <%}%>
                        </div>
                        <div class="col-4"><span class="Validform_checktip">发布的文章是否需要审核才显示</span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i>*</i>用户名：</label>
                        <div class="formControls col-xs-6">
                            <asp:TextBox ID="txtUserName" runat="server" CssClass="input-text col-xs-12" datatype="/^[a-zA-Z0-9\-\_]{2,50}$/" sucmsg=" " ajaxurl="../../tools/admin_ajax.ashx?action=manager_validate"></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip">字母、下划线，不可修改</span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>初始密码：</label>
                        <div class="formControls col-xs-6">
                            <asp:TextBox ID="txtPassword" runat="server" CssClass="input-text col-xs-12" TextMode="Password" datatype="*6-20" nullmsg="密码不能为空" errormsg="密码范围在6-20位之间" sucmsg=" "></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>确认密码：</label>
                        <div class="formControls  col-xs-6">
                            <asp:TextBox ID="txtPassword1" runat="server" CssClass="input-text col-xs-12" TextMode="Password" datatype="*" recheck="txtPassword" nullmsg="请再输入一次密码" errormsg="两次输入的密码不一致" sucmsg=" "></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>姓&nbsp;名：</label>
                        <div class="formControls col-xs-6">
                            <asp:TextBox ID="txtRealName" runat="server" CssClass="input-text col-xs-12" datatype="*" nullmsg="姓名不能为空"></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>手&nbsp;机：</label>
                        <div class="formControls col-xs-6">
                            <asp:TextBox ID="txtTelephone" runat="server" CssClass="input-text col-xs-12" datatype="m" nullmsg="手机不能为空"></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix">
                        <label class="label_name col-xs-2 col-lg-2"><i class="c-red">*</i>邮&nbsp;箱：</label>
                        <div class="formControls col-xs-6">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="input-text col-xs-12" datatype="e" nullmsg="请输入邮箱"></asp:TextBox>
                        </div>
                        <div class="col-4"><span class="Validform_checktip"></span></div>
                    </li>
                    <li class="clearfix col-xs-12 col-lg-12 align">

                        <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn button_btn bg-deep-blue btn_height" OnClick="btnSubmit_Click" />
                        <%--<input name="reset" type="reset" class="btn button_btn btn-infobtn-gray btn_height" value="取消重置" />--%>
                    </li>
                </ul>
            </form>
        </div>
    </div>
</body>
</html>
